public class EX2_1 {
	public static void main(String[] args){
		int score[][]=new int[2][3],max,x,i,min,t,sum[];
		double[] b = new double[2];
		for(i=0;i<2;i++)
			{
				sum[i]=0;
			}
		score[0][0]=60;
		score[0][1]=62;
		score[0][2]=64;
		score[1][0]=50;
		score[1][1]=78;
		score[1][2]=98;
		for(i=0;i<2;i++)
		{	for(x=0;x<3;x++)
			{    
		     		max=score[i][0];
		     		if(score[i][x]>score[i][0])
		     		max=score[i][x];
		     		score[i][x]=score[i][0];
		     		score[i][0]=max;
		     		min=score[i][1];
		     		if(score[i][x]<score[i][1])
			     		min=score[i][x];
			     		score[i][x]=score[i][1];
			     		score[i][1]=min;
		}}
		for(i=0;i<2;i++)
		{	for(x=2;x<3;x++)
			{
				sum[i]+=score[i][x];
				t=3-2;
				b[i]=(double)(sum[i]/t);
			}}
	for(i=0;i<2;i++)
	System.out.print(b[i]+"\t");}
	
}
